package com.example.eureka_client.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 评论回复表
 * </p>
 *
 * @author plj
 * @since 2022-03-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("COMMENTS_REPLY")
@ApiModel(value="CommentsReply对象", description="评论回复表")
public class CommentsReply implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "ID", type = IdType.INPUT)
    private String id;

    @ApiModelProperty(value = "评论主表id")
    @TableField("COMMENT_ID")
    private String commentId;

    @ApiModelProperty(value = "评论者id(必须)")
    @TableField("FROM_ID")
    private String fromId;

    @ApiModelProperty(value = "评论者名字（必须）")
    @TableField("FROM_NAME")
    private String fromName;

    @ApiModelProperty(value = "评论者头像（必须，就是用户photo字段对应的那个地址）")
    @TableField("FROM_AVATAR")
    private String fromAvatar;

    @ApiModelProperty(value = "评论内容（必须）")
    @TableField("CONTENT")
    private String content;

    @ApiModelProperty(value = "创建时间")
    @TableField("CREATE_TIME")
    private String createTime;


    @ApiModelProperty(value = "点赞数量")
    @TableField("LIKE_NUM")
    private Integer likeNum;

    @ApiModelProperty(value = "踩数量")
    @TableField("NOT_LIKE_NUM")
    private Integer notLikeNum;


}
